<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>课程表单</title>
<style type="text/css">
.bootstrap-frm {
	margin-left: auto;
	margin-right: auto;
	max-width: 500px;
	background: #eeeeee;
	padding: 20px 30px 20px 30px;
	font: 18px "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: #888;
	text-shadow: 1px 1px 1px #FFF;
	border: 1px solid #DDD;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}

.bootstrap-frm label {
	display: block;
	margin: 0px 0px 5px;
}

.bootstrap-frm label>span {
	float: left;
	width: 20%;
	text-align: right;
	padding-right: 10px;
	margin-top: 10px;
	color: #333;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: bold;
}

.bootstrap-frm input[type="text"] {
	border: 1px solid# CCC;
	color: #888;
	height: 20px;
	line-height: 15px;
	margin-bottom: 16px;
	margin-right: 6px;
	margin-top: 2px;
	outline: 0 none;
	padding: 5px 0px 5px 5px;
	width: 70%;
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.bootstrap-frm input[type="submit"] {
	background: #FFF;
	border: 1px solid #CCC;
	padding: 10px 25px 10px 25px;
	color: #333;
	border-radius: 4px;
}

.bootstrap-frm input[type="submit"]:hover {
	color: #333;
	background-color: #EBEBEB;
	border-color: #ADADAD;
}
</style>
</head>
<body>
<c:set var="the_flag" scope="page" value="${param.flag}"/>
<c:if test="${the_flag==1}"> <!-- flag==1是管理员添加课程信息 -->
	<form class="bootstrap-frm" id="form" action="/EduAdminSystem/servlet/OP_ModifCourseServlet" method="get">
		<label>课程号:</label><input type="text" name="course_no" value=""><br /> 
		<label>课程名称:</label><input type="text" name="course_name" value="" ><br />
		<label>学分:</label><input type="text" name="course_credit" value="" ><br /> 
		<label>职工号:</label><input type="text" name="tea_no" value="" ><br /> 
		<input type="submit" value="提交">
		<input type="hidden" name="flag" value="1">
	</form>
</c:if>

<c:if test="${the_flag==2}"> <!-- flag==2是管理员修改课程信息 -->
	<form class="bootstrap-frm" id="form" action="/EduAdminSystem/servlet/OP_ModifCourseServlet" method="get">
		<label>课程号:</label><input type="text" name="course_no" value="${param.courseno}" readonly><br /> 
		<label>课程名称:</label><input type="text" name="course_name" value="${param.coursename}" ><br />
		<label>学分:</label><input type="text" name="course_credit" value="${param.credit}" ><br /> 
		<label>职工号:</label><input type="text" name="tea_no" value="${param.teano}" ><br /> 
		<input type="submit" value="提交">
		<input type="hidden" name="flag" value="2">	
	</form>
</c:if>
</body>
</html>